Glossary Item Box

TradeScript Help

Exponential Moving Average

ExponentialMovingAverage(Vector, Periods)

EMA(Vector, Periods)

MA Type Argument ID: EXPONENTIAL

Overview

An Exponential Moving Average is similar to a Simple Moving Average. An EMA is calculated by applying a small percentage of the current value to the previous value, therefore an EMA applies more weight to recent values.

Interpretation

A Moving Average is most often used to average values for a smoother representation of the underlying price or indicator.

Example

CLOSE > EMA(CLOSE, 30)

Evaluates to true when the close is greater than a 30-day EMA.